package demo3;
class TestDemo implements Itest {
    @Override
    public void testA() {
        System.out.println("重写testA()！");
    }

    @Override
    public void defaultMethod() {
        System.out.println("重写defaultMethod()");
    }
}


abstract class TestDemo2 implements Itest {
    public abstract void testDemo2();
}

class TestDemo3 extends TestDemo2 {
    @Override
    public void testA() {

    }

    @Override
    public void testDemo2() {

    }
}



public class Test {
    public static void main(String[] args) {
        Itest.testStatic();
        Itest testDemo = new TestDemo();
        testDemo.defaultMethod();
    }
}